<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
<div th:fragment="nav">
    <div class="header">
        <div class="head-main">
            <a class="link-home" th:href="@{/}">大学生毕业论文参考<br>文献管理系统</a>
            <div class="head-right">
                <!--显示登录注册-->
                <ul class="login-btns" id="login-menu" th:if="${session.studentId==null}">
                    <li class="login"><a class="btn-login" th:href="@{/login}">登录</a></li>
                    <li class="register"><a class="btn-register" th:href="@{/register}">注册</a></li>
                </ul>
                <!--显示学号-->
                <div class="login-btns" id="studentId-menu" th:if="${session.studentId!=null}">
                    <span th:text="${session.studentId}"></span>&nbsp;
                    <a href="/reference/login/logout">退出</a>
                </div>

                <ul class="link-list">
                    <li><a th:href="@{/index}">文档导入</a></li>
                    <li><a th:href="@{/home}">我的文献</a></li>
                </ul>
            </div>
            <!--head-right-->
        </div>
        <!--head-main-->
    </div>
</div>
<div th:fragment="footer">
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
</body>
</html>
